package io.jenkins.plugins.feiqiu;


import hudson.Extension;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor;
import org.kohsuke.stapler.DataBoundConstructor;

public class TaskProperties extends AbstractDescribableImpl<TaskProperties> {

  public FeiqiuTarget[] targets;
  public String text;
  public String textFile;

  @DataBoundConstructor
  public TaskProperties(String text, String textFile) {
    this.text = text;
    this.textFile = textFile;
  }

  @Extension
  public static class DescriptorImpl extends Descriptor<TaskProperties> {

    public String getDisplayName() {
      return "TaskProperties";
    }
  }

  public FeiqiuTarget[] getTargets() {
    return targets;
  }

  public void setTargets(FeiqiuTarget[] targets) {
    this.targets = targets;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public String getTextFile() {
    return textFile;
  }

  public void setTextFile(String textFile) {
    this.textFile = textFile;
  }
}
